package com.cx.auth.feign;

import com.cx.auth.model.vo.ResultBean;
import com.cx.auth.model.vo.UserDetailsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zhangcx
 * @Description: auth feign service
 * @date: 2024/1/10 11:37
 * @email: zhangcx@bluemoon.com.cn
 */
@FeignClient(value = "oauth2-auth",path = "/oauth")
public interface AuthService {

    @PostMapping("getUserInfo")
    ResultBean<UserDetailsVO> getUserInfo(@RequestParam("token") String token);

    @PostMapping("/logout")
    ResultBean delToken(@RequestParam("token") String token);
}
